import icon6 from '@imgs/desktop-icon6.png'
import icon7 from '@imgs/desktop-icon7.png'
import icon8 from '@imgs/desktop-icon8.png'
import icon9 from '@imgs/desktop-icon9.png'
import icon10 from '@imgs/desktop-icon10.png'
import icon11 from '@imgs/desktop-icon11.png'
import icon12 from '@imgs/desktop-icon12.png'
import icon13 from '@imgs/desktop-icon13.png'
import icon14 from '@imgs/desktop-icon14.png'
import icon15 from '@imgs/desktop-icon15.png'
import icon16 from '@imgs/desktop-icon16.png'
import icon17 from '@imgs/desktop-icon17.png'
export const typeList = [
  { title: '咨询律师', icon: icon6, color: 'rgb(99, 200, 201)', width: 16, height: 16 },
  { title: '审改合同/法律文件', icon: icon7, color: 'rgb(227, 108, 125)', width: 15, height: 15 },
  { title: '起草合同/法律文件', icon: icon8, color: 'rgb(112, 199, 124)', width: 15, height: 15 },
  { title: '预约面谈', icon: icon9, color: 'rgb(57, 142, 247)', width: 15, height: 15 },
  { title: '出具律师函', icon: icon10, color: 'rgb(245, 211, 88)', width: 15, height: 15 },
  { title: '出具书面意见', icon: icon11, color: 'rgb(244, 164, 88)', width: 15, height: 15 },
  { title: '法律培训与讲座', icon: icon12, color: 'rgb(48, 59, 191)', width: 13, height: 13 },
  { title: '列席会议', icon: icon13, color: 'rgb(142, 100, 221)', width: 14, height: 14 },
  { title: '协助谈判', icon: icon14, color: 'rgb(194, 137, 191)', width: 14, height: 14 },
  { title: '民商事诉讼', icon: icon15, color: 'rgb(60, 86, 186)', width: 14, height: 14 },
  { title: '劳动诉讼', icon: icon16, color: 'rgb(140, 183, 187)', width: 14, height: 14 },
  { title: '刑事诉讼', icon: icon17, color: 'rgb(134, 134, 134)', width: 15, height: 12 }
]
export interface TaskConfig {
  title: string
  icon: string
  color: string
  width: number
  height: number
}
// 根据类型获取配置
export function getTaskConfigByType (t: string): TaskConfig | null {
  const types = typeList.map(li => li.title)
  const index = types.indexOf(t)
  if (index === -1) {
    return null
  }
  return typeList[index]
}
